package com.hbms.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hbms.common.annotation.Excel;
import com.hbms.common.core.domain.BaseEntity;

/**
 * 用户收藏酒店对象 hotelbms_userhotelfavorites
 * 
 * @author zl
 * @date 2024-04-10
 */
public class HotelbmsUserhotelfavorites extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户酒店收藏ID */
    private Long userHotelFavoriteId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 酒店ID */
    @Excel(name = "酒店ID")
    private Long hotelId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateAdded;

    /** 创建者ID */
    @Excel(name = "创建者ID")
    private Long createdBy;

    public void setUserHotelFavoriteId(Long userHotelFavoriteId) 
    {
        this.userHotelFavoriteId = userHotelFavoriteId;
    }

    public Long getUserHotelFavoriteId() 
    {
        return userHotelFavoriteId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setHotelId(Long hotelId) 
    {
        this.hotelId = hotelId;
    }

    public Long getHotelId() 
    {
        return hotelId;
    }
    public void setDateAdded(Date dateAdded) 
    {
        this.dateAdded = dateAdded;
    }

    public Date getDateAdded() 
    {
        return dateAdded;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userHotelFavoriteId", getUserHotelFavoriteId())
            .append("userId", getUserId())
            .append("hotelId", getHotelId())
            .append("dateAdded", getDateAdded())
            .append("createdBy", getCreatedBy())
            .toString();
    }
}
